package cn.edu.scnu.Service;

import cn.edu.scnu.entity.Return;
import cn.edu.scnu.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

public interface UserService extends IService<User> {
    //注册
    public Return register(User user);
    //登录
    public Return login(User user);
    //通过用户名找到用户
    public User findByUserName(String username);
    //修改用户资料
    public Return updateUser(String oldName, User user);
}
